import VueRouter from 'vue-router';
import home from './components/tabbar/HomeCortainer.vue';
import vip from './components/tabbar/VipCortainer.vue';
import shopcar from './components/tabbar/ShopcarCortainer.vue';
import search from './components/tabbar/SearchCortainer.vue';
import newsList from './components/news/NewsList.vue';
import newsInfo from './NewsInfo.vue';
import photoslist from './components/photos/PhotoList.vue';
import photosInfo from './components/photos/PhotoInfo.vue';
import goodsList from './components/goods/GoodsList.vue';
import goodsInfo from './components/goods/GoodsInfo.vue';

var vr=new VueRouter({
    routes:[
        {path:"/",redirect:"home"},
        {path:"/home",component:home},
        {path:"/vip",component:vip},
        {path:"/shopcar",component:shopcar},
        {path:"/search",component:search},
        
        {path:"/home/newsList",component:newsList},
        {path:"/home/newsList/newsInfo/:id",component:newsInfo},

        {path:"/home/photoslist",component:photoslist},
        {path:"/home/photoslist/photosInfo/:id",component:photosInfo},

        {path:"/home/goodsList",component:goodsList},
        {path:"/home/goodsList/goodsInfo/:id",component:goodsInfo},
    ],
    linkActiveClass: 'mui-active',
});
export default vr;